<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>文件展示页面</title>
</head>
<body style="text-align: center">
<table border="1" width="900" style="margin: 0 auto">
    <caption>文件展示页面</caption>
    <tr>
        <td>序号</td>
        <td>文件名称</td>
        <td>图片</td>
        <td>下载</td>
    </tr>

    <tr th:each="fileName,st:${fileNames}">
        <td th:text="${st.count}"></td>
        <td th:text="${fileName}"></td>
        <td>
            <a th:href="@{/file/download(fileName=${fileName})}">
                <img th:src="@{/file/download(fileName=${fileName})}" alt="" style="width: 100px"/>
            </a>
        </td>
        <td><a th:href="@{/file/download(fileName=${fileName})}">下载</a></td>
    </tr>
</table>
</body>
</html>